//
//  AppCacheDataManger.h
//  YLCommon
//
//  Created by Apple on 2017/9/26.
//  Copyright © 2017年 Apple. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface AppCacheDataManger : NSObject

#pragma mark - 实例化
//不可用方法
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;

//初始化
+ (instancetype)shareInstance;

#pragma mark- Cache
/**
 *  保存数据到沙河中NSUserDefaults
 */
- (void)saveObject:(NSObject *)object forKey:(NSString *)key;

/**
 *  通过key移除数据
 */
- (void)removeForKey:(NSString *)key;

/**
 *  通过key值获得数据
 */
- (NSObject *)getObectForKey:(NSString *)key;

@end
